<?php
/**
 * PurchaseFixture
 *
 */
class PurchaseFixture extends CakeTestFixture {

/**
 * Table name
 *
 * @var string
 */
	public $table = 'purchase';

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
		'purchase_price1' => array('type' => 'integer', 'null' => true, 'default' => null),
		'purchase_price2' => array('type' => 'integer', 'null' => true, 'default' => null),
		'freight1' => array('type' => 'integer', 'null' => true, 'default' => null),
		'freight2' => array('type' => 'integer', 'null' => true, 'default' => null),
		'buying' => array('type' => 'integer', 'null' => true, 'default' => null),
		'ducamz_value' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'vendor_name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'purchase_ref_no' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'purchase_by' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'pur_date' => array('type' => 'date', 'null' => true, 'default' => null),
		'ship_date' => array('type' => 'date', 'null' => true, 'default' => null),
		'ship_name' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'bl_no' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'cont_no' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'bol_1' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'stock_type' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'arrival_date' => array('type' => 'date', 'null' => true, 'default' => null),
		'control_no' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'total_exp' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'buyer_company' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'buyer_contact' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 100, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'third_party' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'transport_date' => array('type' => 'date', 'null' => true, 'default' => null),
		'transport_company' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'repair_company' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 150, 'collate' => 'latin1_swedish_ci', 'charset' => 'latin1'),
		'repair_date' => array('type' => 'date', 'null' => true, 'default' => null),
		'stock_id' => array('type' => 'integer', 'null' => true, 'default' => null),
		'indexes' => array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1)
		),
		'tableParameters' => array('charset' => 'latin1', 'collate' => 'latin1_swedish_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'purchase_price1' => 1,
			'purchase_price2' => 1,
			'freight1' => 1,
			'freight2' => 1,
			'buying' => 1,
			'ducamz_value' => 'Lorem ipsum dolor sit amet',
			'vendor_name' => 'Lorem ipsum dolor sit amet',
			'purchase_ref_no' => 'Lorem ipsum dolor sit amet',
			'purchase_by' => 'Lorem ipsum dolor sit amet',
			'pur_date' => '2013-12-19',
			'ship_date' => '2013-12-19',
			'ship_name' => 'Lorem ipsum dolor sit amet',
			'bl_no' => 'Lorem ipsum dolor sit amet',
			'cont_no' => 'Lorem ipsum dolor sit amet',
			'bol_1' => 'Lorem ipsum dolor sit amet',
			'stock_type' => 'Lorem ipsum dolor sit amet',
			'arrival_date' => '2013-12-19',
			'control_no' => 'Lorem ipsum dolor sit amet',
			'total_exp' => 'Lorem ipsum dolor sit amet',
			'buyer_company' => 'Lorem ipsum dolor sit amet',
			'buyer_contact' => 'Lorem ipsum dolor sit amet',
			'third_party' => 'Lorem ipsum dolor sit amet',
			'transport_date' => '2013-12-19',
			'transport_company' => 'Lorem ipsum dolor sit amet',
			'repair_company' => 'Lorem ipsum dolor sit amet',
			'repair_date' => '2013-12-19',
			'stock_id' => 1
		),
	);

}
